Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BACKLOG-23358 Add highlight test #1328

Merged
merged 8 commits into from
Nov 8, 2024
Merged

BACKLOG-23358 Add highlight test #1328

merged 8 commits into from
Nov 8, 2024

Conversation

AKarmanov
Copy link
Contributor

JIRA

https://jira.jahia.org/browse/BACKLOG-23358

Description

Add highlight test

@AKarmanov AKarmanov marked this pull request as ready for review November 6, 2024 13:10
@AKarmanov AKarmanov requested a review from a team November 6, 2024 13:25
Comment on lines 23 to 26
cy.loginAndStoreSession(); // Edit in chief
const jcontent = JContent.visit('jcontentSite', 'en', 'pages/home');
jcontent.publishAll();
cy.get('button[data-sel-role="openInLive"]', {timeout: 5000}).should('be.visible');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe possible to replace with publishAndWaitJobEnding method from jahia-cypress: https://github.com/Jahia/jahia-cypress/blob/main/src/utils/PublicationAndWorkflowHelper.ts#L2 as going through UI to publish adds quite a bit of time per test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, there must be an issue with it, I keep getting log Caught Graphql Query Error: {"graphQLErrors":[{"message":"Validation error (FieldUndefined@[admin/jahia/scheduler/jobs/siteKey]) : Field 'siteKey' in type 'GqlBackgroundJobConnection' is undefined","locations": for path: /sites/jcontentSite

@AKarmanov AKarmanov merged commit ad3b6fb into master Nov 8, 2024
18 checks passed
@AKarmanov AKarmanov deleted the BACKLOG-23358 branch November 8, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants